﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage2.master" AutoEventWireup="true" CodeFile="Admin_XemChiTietSanPham.aspx.cs" Inherits="KhachHangDaiChung_KhachHangDaiChung_XemChiTietSanPham" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register src="../../UserControls/SiteMapLoaiSanPham.ascx" tagname="SiteMapLoaiSanPham" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style4
        {
            width: 52px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
         
         <center>
         <uc1:SiteMapLoaiSanPham ID="SiteMapLoaiSanPham1" runat="server" />
         <table cellspacing="10px">
                <tr><td>
                 <h2 align="center"> <asp:Label ID="lbTenSanPham" runat="server" Font-Bold="True" Text="Label"></asp:Label></h2></td>
                 <td><asp:Image ID="imgNew" Height="70px" Width="70px" runat="server" ImageUrl="~/Resource/images/new.gif" />
                 </td> </tr></table></center> 
        
         <br />
         
         <div style="float:left">
             
             
         <asp:Image ID="imgSanPham" runat="server" Height="140px" Width="140px" /><br /><br />
             <asp:Image ID="imgYeuThich" ImageUrl="~/Resource/images/yeuthich2.gif" runat="server" />
         </div>
         <table cellspacing="10px">
             
             <tr>                 
                  <td>
                     <asp:Label ID="lbGia" runat="server" Font-Size="Larger" Font-Bold="True" ForeColor="Red" Text="Label"></asp:Label>
                     <asp:Label ID="lbDonViTinh" runat="server" Font-Bold="True" Text="Label" ForeColor="red"></asp:Label>
                 </td>
             </tr>
             
             
             <tr>
                 <td style="border:1; background-color:#F0F0F0; font-weight:bold">
                     Mô tả
                  </td>
              </tr>
              <tr>
                 <td>
                     Nhà sản xuất                 
                     <asp:Label ID="lbNhaSanXuat" runat="server" Font-Bold="True" Text="Label"></asp:Label>
                 </td>
             </tr>
              <tr>
                  <td>
                     <asp:Label ID="lbMoTa" runat="server" Text="Label"></asp:Label>
                 </td>
             </tr>
             <tr>
                 <td style="border:1; background-color:#F0F0F0; font-weight:bold">
                     Thuộc tính
                  </td>
              </tr>
              <tr>
                 <td>
                     <asp:Label ID="lbThuocTinh" runat="server" 
                         Text=""></asp:Label>
                 </td>
              </tr>
			 <tr>
                 <td style="border:1; background-color:#F0F0F0; font-weight:bold">
                     Khuyến mãi
                  </td>
              </tr>
             
              <tr>
              <td width='350'>
                  <asp:Label ID="lblTangKem" runat="server" Text="Sản phẩm hiện tại không có khuyến mãi"></asp:Label>
                  </td>
              </tr>
              
              <tr>
                 <td style="border:1; background-color:#F0F0F0; font-weight:bold">
                     Trạng thái
                  </td>
              </tr>
              <tr>
                 <td>
                     <asp:Label ID="lbTrangThaiBan" runat="server" 
                         Text="Label"></asp:Label>
                 </td>
              </tr>
             
              
             <tr>             
                 
                 
                 <%
                     if (Request["MaSP"] != null)
                     {
                         GlobalFunctions gf = new GlobalFunctions();
                         string masp = Convert.ToString(Request["MaSP"]);
                         if (gf.IsKHTT() == 1 || gf.IsKHDC() == 1)
                         {
                             DataDSTableAdapters.SANPHAMYEUTHICHTableAdapter spytadapter = new DataDSTableAdapters.SANPHAMYEUTHICHTableAdapter();
                             DataDS.SANPHAMYEUTHICHDataTable spyttable = spytadapter.SANPHAMYEUTHICH_KiemTraThuoc(gf.getCMND().Trim(), masp);
                             string url = Server.UrlEncode(Request.RawUrl);                             
                             if (spyttable.Rows.Count > 0)
                                 Response.Write("<td align='right'><a href='../KhachHangThanThiet/KHTT_LoaiKhoiDanhSach.aspx?Id=" + masp + "&url=" + url + "'>Lo?i kh?i danh sách yêu thích</a></td>");
                             else
                             {
                                 //DataDSTableAdapters.SANPHAMTableAdapter spadapter = new DataDSTableAdapters.SANPHAMTableAdapter();
                                 //DataDS.SANPHAMDataTable sptable = spadapter.SANPHAM_LayTheoMaSP(Convert.ToString(Request["MaSP"]));
                                 Response.Write("<td align='right'><a href='../KhachHangThanThiet/KHTT_ThemSanPhamYeuThich.aspx?Id=" + masp + "&url=" + url + "'>Thêm vào danh sách yêu thích</a></td>");
                             }
                         }
                       
                     }
                  %>
             </tr>
             
             <tr>
                 <td align="center" colspan="3">
                     <asp:Button ID="btnCapNhat" runat="server" Text="Cập nhật" 
                         onclick="btnCapNhat_Click" />                    
                     <asp:Button ID="btnBack" runat="server" Text="Back" onclick="btnBack_Click" />
                     
                 </td>
             </tr>
         </table>
    <asp:HiddenField ID="HiddenField1" runat="server" />    
    <asp:Panel ID="Panel1" runat="server" BorderColor="#009933" 
        BorderStyle="Double" BorderWidth="1px" BackColor="Azure">
    <table>
    <tr>
        <td><asp:Label ID="lblGioHang" runat="server" Text=""></asp:Label></td>
    </tr>
    <tr>
        <td>
            <asp:Button ID="btnDong" runat="server" Text="Ðóng" />
        </td>
    </tr>
    </table>
    </asp:Panel>
    <cc1:ModalPopupExtender ID="msg" runat="server" TargetControlID="HiddenField1" PopupControlID="Panel1" CancelControlID="btnDong" >
    </cc1:ModalPopupExtender>
</asp:Content>

